package com.auction.service;

import com.auction.common.dao.MyBaseService;
import com.auction.entity.UserAddr;

import java.util.List;
import java.util.Map;

public interface UserAddrService extends MyBaseService<UserAddr> {
    /**
     * 根据用户id获取收货地址
     * @param user_id
     * @return
     */
    List<Map> getUserAddrByUserId(int user_id);

    /**
     * 更改默认地址
     * @param newAddr
     * @param oldAddr
     * @return
     */
    int updateDefault(int newAddr,int oldAddr);
}
